package com.yijiu.trb;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.yijiu.network.StringUtils;

/**
 * 反馈
 * 
 * @author TangChao
 */
public class FeedbackActivity extends BTitleActivity
{
	private EditText feedbackEditText;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.feedback_activity_layout);
		titleView.setText("反馈");
		feedbackEditText = (EditText) findViewById(R.id.feedbackEditText);
	}
	public void feedBackClick(View v)
	{
		int id = v.getId();
		switch (id)
		{
			case R.id.commitButton:
				String feedbackInfo = feedbackEditText.getText().toString();
				if (StringUtils.isNull(feedbackInfo))
				{
					app.showMsg("请输入宝贵的意见或建议");
					return;
				}
				app.showMsg("提交反馈意见成功！");
				finish();
				break;
			default:
				break;
		}
	}
}
